package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * meidicineInfo对象 medicine_info
 * 
 * @author ruoyi
 * @date 2024-12-17
 */
public class MedicineInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 药品汉字名称 */
    @Excel(name = "药品名称")
    private String medicineCnName;

    /** 药品logo */
//    @Excel(name = "药品logo")
    private String logo;

    /** 色彩类型；1：彩色；2黑白 */
//    @Excel(name = "色彩类型；1：彩色；2黑白")
    private Long colorType;

    /** 核准日期 */
  //  @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "核准日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkDate;

    /** 药品修改时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "药品修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date mixDate;

    /** 药品规格 */
    @Excel(name = "药品规格")
    private String medicineSpecifications;

    //音频文件
    private String auditText;

    /** 二维码地址 */
    @Excel(name = "二维码", cellType = Excel.ColumnType.IMAGE)
    private String qrCodeUrl;
    // 声音类型
    private String   voiceType;

    /** 音频地址 */
    // @Excel(name = "音频地址")
    private String voiceUrl;

    /**
     * 查询用
     */
    private Long[] ids;

    // 药品详情
    private List<MedicineDetail> medicineDetails;


    public Long[] getIds() {
        return ids;
    }

    public void setIds(Long[] ids) {
        this.ids = ids;
    }

    public String getVoiceUrl() {
        return voiceUrl;
    }

    public void setVoiceUrl(String voiceUrl) {
        this.voiceUrl = voiceUrl;
    }

    public String getAuditText() {
        return auditText;
    }

    public void setAuditText(String auditText) {
        this.auditText = auditText;
    }

    public String getVoiceType() {
        return voiceType;
    }

    public void setVoiceType(String voiceType) {
        this.voiceType = voiceType;
    }

    public List<MedicineDetail> getMedicineDetails() {
        return medicineDetails;
    }

    public void setMedicineDetails(List<MedicineDetail> medicineDetails) {
        this.medicineDetails = medicineDetails;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMedicineCnName() {
        return medicineCnName;
    }

    public void setMedicineCnName(String medicineCnName) {
        this.medicineCnName = medicineCnName;
    }


    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Date getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(Date checkDate) {
        this.checkDate = checkDate;
    }

    public Date getMixDate() {
        return mixDate;
    }

    public void setMixDate(Date mixDate) {
        this.mixDate = mixDate;
    }


    public String getMedicineSpecifications() {
        return medicineSpecifications;
    }

    public void setMedicineSpecifications(String medicineSpecifications) {
        this.medicineSpecifications = medicineSpecifications;
    }

    public Long getColorType() {
        return colorType;
    }

    public void setColorType(Long colorType) {
        this.colorType = colorType;
    }

    public String getQrCodeUrl() {
        return qrCodeUrl;
    }

    public void setQrCodeUrl(String qrCodeUrl) {
        this.qrCodeUrl = qrCodeUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("medicineCnName", getMedicineCnName())
            .append("logo", getLogo())
            .append("checkDate", getCheckDate())
            .append("mixDate", getMixDate())
            .append("qrCodeUrl", getQrCodeUrl())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
